<?php
require_once("class_geral.php");
class cat_img_pags extends geral
{
	public $_nomeTabela = 'cat_img_pags';
	public $_nomeChave = 'cat_img_pags_id';
		
	public $pags_id;
	public $nome;
	
	public function del($id)
	{
		$dbQuery = "DELETE FROM ".$this->_nomeTabela;
		$dbQuery .= " WHERE ".$this->_nomeChave." = $id";
		$this->exeQuery($dbQuery);
		
		
		$dbQuery = "DELETE FROM img_pags WHERE pags_id = '$id' ";
		$this->exeQuery($dbQuery);
	}
	
}
?>
